#include "BlockHitAbilityVisitor.h"
#include "BlockHitAbility.h"


BlockHitAbilityVisitor::BlockHitAbilityVisitor(): found(false)
{
}

BlockHitAbilityVisitor::~BlockHitAbilityVisitor()
{
}

void BlockHitAbilityVisitor::Visit(BlockHitAbility& ability)
{
	found = true;
	blockDirection = ability.BlockDirection();
}

bool BlockHitAbilityVisitor::FoundAbility() const
{
	return found;
}

const Direction& BlockHitAbilityVisitor::BlockDirection() const
{
	return blockDirection;
}



